package com.earthea.scaffold.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum MenuTypeEnum implements SelectEnum<String> {
    DIRECTORY("目录", "M"),

    MENU("菜单", "C"),

    BUTTON("按钮", "F"),
    ;

    private final String label;
    @EnumValue
    @JsonValue
    private final String value;

    MenuTypeEnum(String label, String value) {
        this.label = label;
        this.value = value;
    }

}
